package cc.verywell.pureblock.util;

import java.nio.ByteBuffer;
import java.security.DigestException;

/**
* 
* 这种常用的东西还是用ThreadLocal保存吧!
* 
* @author TanYaqiu 
* @address flat 601
* @date 2019年3月2日 上午11:51:55
*/
public interface HashUtil {

	public byte[] hash(byte[] src);
	public byte[] hash(ByteBuffer bb);
	public void hash(byte[] src,byte[] output) throws DigestException;
	public void hash(ByteBuffer bb,byte[] output) throws DigestException;
	public int length();

}
